package net.oschina.app.pages;

import android.view.View;

import net.oschina.app.SoloWrap;

/**
 * Created by Administrator on 2018/3/21.
 */

public class PageNavigation {
    private SoloWrap solo;
    private View newsTab,tweetTab,addTab,foundTab,meTab;

    public PageNavigation(SoloWrap solo){
        this.solo=solo;
    }

    public void initViews(){
        solo.sleep(3000);
        newsTab=solo.getView("net.oschina.app:id/nav_item_news");
        tweetTab=solo.getView("net.oschina.app:id/nav_item_tweet");
        addTab=solo.getView("net.oschina.app:id/nav_item_tweet_pub");
        foundTab=solo.getView("net.oschina.app:id/nav_item_explore");
        meTab=solo.getView("net.oschina.app:id/nav_item_me");
    }
    public void clickNewsTab(){
        solo.clickOnView(newsTab);

    }
    public  void clickTweetTab(){
        solo.clickOnView(tweetTab);
    }
    public  void clickAddTab(){
        solo.clickOnView(addTab);
    }

    public void clickFoundTab(){
        solo.clickOnView(foundTab);
    }

    public void clickMeTab(){
        solo.clickOnView(meTab);
    }
}
